<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>账单明细</title>
		<link rel="stylesheet" href="./../public/css/common.css">
		<link rel="stylesheet" href="./../public/css/pintuer.css">
		<link rel="stylesheet" href="./css/casher-manage.css">
	</head>
	<body ms-controller="casherManage">
		<div class="content">
			<div>
				<div class="account_section ">
					<div class="line-big border section_common">
						<div class="x12">
							<div class="line-big bg-sub box-header">
								<div class="x8 title">
									收银员信息
								</div>
								<div class="x4 text-right">
									<a href="javascript:;"></a>
								</div>
							</div>

							<div class="line-big upload_detail mt20">
								<div class="x12 text-left">
									<a ><button class="button bg-green" type="button" ms-click="@casherAdd()"><span class="icon-plus"></span> 新增收银员</button></a>
									<button class="button bg-sub" ms-on-click="@refresh()"><span class="icon-refresh"></span>更新收银通道</button>

								</div>
							</div>
							<!--  -->
							<div class="line-big bill_info"  :class="@datashow? 'showblock':'hide'">
								<div class="x12">

									<div class="line-big ">
										<div class="x12">
											<div class="table-responsive">
												<table class="table">
													<tr>
														<th>
															收银员

														</th>
														<th>
															是否为管理员

														</th>
														<th>手机号</th>
														<th>操作</th>


													</tr>
													<tr ms-for="item in @salelist">
														<td>
															{{item.nickname}}
														</td>
														<td>
															{{item.is_admin}}

														</td>
														<td>
															{{item.mobile}}

														</td>

														<td>
															<button class="button bg-green table_btn" ms-on-click="receiptCode">收款码</button>
															<button class="button bg-green  table_btn ml10" ms-on-click="preCode">预授权码</button>
															<a ><button class="button border-red table_btn ml10" ms-on-click="@modifyClick(item.id,item.department_id,item.is_admin)">修改</button></a>

															<button class="button border-red table_btn ml10" ms-class="item.is_admin=='是'? 'hide':''" ms-on-click="@deleteClick(item.id)">删除</button>
														</td>

													</tr>

												</table>
											</div>
										</div>
									</div>
									<div class="tongji">共计:{{@total}}条</div>
									<!-- <div class="page">
										<a class="pagePre" ms-class="@pageisshow ?'':'hide' " ms-on-click="pagepre">
											<<</a> <a ms-for="el in @totalpage" ms-class="[(@totalpage.length==1?'hide':''),(@page==el?'active':'')]"
											ms-on-click="@pageto(el)">
												{{el}}
										</a>
										<a class="pageNext" ms-class="@pageisshow ?'':'hide' " ms-on-click="pagenext">>></a>
									</div> -->
									<div class="page">
										<a class="pagePre " ms-class="@pageisshow ?'showblock':'hide' " ms-on-click="pagepre"><span>《</span></a> 
										<a ms-for="el in @totalpage" ms-class="[(@totalpage.length==1?'hide':''),(@page==el?'active':'')]"
											ms-on-click="@pageto(el)">
												{{el}}
										</a>
										<a class="pageNext " ms-class="@pageisshow ?'showblock':'hide' " ms-on-click="pagenext"><span>》</span></a>
									</div>

								</div>
							</div>
						</div>
					</div>



				</div>
			</div>
		</div>
		<div class="mask" :class='@toggle? "openmask":""'></div>
		<!-- 收款二维码弹框 -->
		<div class="dialog" :class='@toggle? "open":""'>
			<div class="dialog-head">
				<strong>收款二维码</strong>
			</div>
			<div class="dialog-body text-center">
				<img src="" class="codeimg" />
				<p class="tips">提示：在图片上面点击鼠标右键-选择图片另存为即可下载</p>
				<p>收银员:天择信上</p>
			</div>
			<div class="dialog-foot">

				<button class="button  " ms-click="closeClick()">
					关闭</button>
			</div>
		</div>
		<div class="mask" :class='@pretoggle? "openmask":""'></div>
		<!-- 预授权码弹框 -->
		<div class="dialog" :class='@pretoggle? "open":""'>
			<div class="dialog-head">
				<strong>预授权收款二维码</strong>
			</div>
			<div class="dialog-body text-center">
				<img src="" class="codeimg" />
				<p class="tips">提示：在图片上面点击鼠标右键-选择图片另存为即可下载</p>
				<p>收银员:天择信上</p>
			</div>
			<div class="dialog-foot">

				<button class="button  " ms-click="precloseClick()">
					关闭</button>
			</div>
		</div>

	</body>
	<!-- api配置文档 -->
	<script src="./../api/api.js"></script>
	<!-- jquery -->
	<script src="./../public/js/jquery.js"></script>
	<!-- 拼图 js -->
	<script src="./../public/js/pintuer.js"></script>
	<!-- avalon js -->
	<script src="./../public/js/avalon.js"></script>
	<!-- common js -->
	<script src="./../public/js/common.js"></script>
	<!-- 账单明细js-->
	<script src="./js/casher-manage.js"></script>


</html>
